CC := gcc
AR := ar

# CFLAGS := -I /root/LinuxKernel/c
# CFLAGS += -DADD1

TARGET := test_write

TARGET_OBJ_LIST := write.o

all: $(TARGET)

$(TARGET): $(TARGET_OBJ_LIST)
	$(CC) $^ -o $@ -static $(STATICLIB)
	# ./$(TARGET) /mnt/xfs/a.txt "Hello, World!"

%.o : %.c 
	$(CC) $(CFLAGS) -c $< -o $@

clean:
	rm -rf $(TARGET_OBJ_LIST)
	rm -rf ./$(TARGET)
